package com.yx.elastic.elasticcm.entity;

import com.yx.elastic.elasticcm.orm.*;

import java.util.Date;

/**
 * Created by chenzp on 18-8-2.
 */
@EDoc(index = "my_test",type = "goods")
public class TestRange {

    @EDocId(fieldName = "goodsId")
    public Integer id;

    @EField(value = "goodsName",validate = EFieldStrategy.NOT_EMPTY)
    private String gname;

    private int age;

    private Date birthday;

    private boolean sex;

    private String[] books;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public boolean getSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public boolean setSex() {
        return sex;
    }

    public String[] getBooks() {
        return books;
    }

    public void setBooks(String[] books) {
        this.books = books;
    }
}
